﻿@model ZhongheCms.Models.GswTblMember
@{
	
    Layout = "~/Views/Shared/_LayoutWebsite.cshtml";
    string mystate = "[审核中]";
    if (Model.AuditFlag == 1)
    {
        mystate = "";
    }
    string mysel = "";
    string strSelect = "";
}
@section head
{

    <link rel="stylesheet" href="/Assets/webuploader/webuploader.css" />
    <link href="/assets/sunjob/css/user.css" rel="stylesheet" />
    <link href="/assets/css/error.css" rel="stylesheet" />
    <script src="/assets/js/jquery.validate.min.js"></script>
    <script src="/assets/js/jquery.validate.unobtrusive.min.js"></script>
    <script type="text/javascript" src="/DatePicker/WdatePicker.js"></script>
    <script src="/Assets/webuploader/webuploader.js" type="text/javascript"></script>
    <script charset="utf-8" src="/kindeditor/kindeditor-min.js" type="text/javascript"></script>
    <script charset="utf-8" src="/kindeditor/lang/zh_CN.js" type="text/javascript"></script>
    <link rel="stylesheet" href="/kindeditor/themes/default/default.css" />
    <script type="text/javascript">
        KindEditor.ready(function (K) {
            var editor1 = K.create('#JobDesc', {
                cssPath: '/kindeditor/plugins/code/prettify.css',
                uploadJson: '/kindeditor/upload_json.ashx',
                fileManagerJson: '/kindeditor/file_manager_json.ashx',
                items: [
                    'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
                    'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
                    'insertunorderedlist', '|', 'emoticons', 'link'],


            });

        });

        function funadd() {
            document.location = "/SunJob/MemberJobpub/@Model.Id";
        }

    </script>
}
<div class="container_24 clearfix" id="orderWrapper">
    <table width="1170" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td height="44" align="left" valign="top">
                <table width="1170" height="36" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td align="left" valign="middle" class="ling">首页　&gt; <a href="/SunJob/MemberCenter">会员中心</a>&gt;免费职位发布</td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td align="left" valign="top">
                <table width="1170" border="0" cellpadding="0" cellspacing="0">
                    <tr align="left" valign="top">
                        <td width="190">
                            <table width="190" border="0" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td align="left" valign="top">
                                        <table width="190" height="102" border="0" cellpadding="0" cellspacing="1" style="background-color: #FFCC97">
                                            <tr>
                                                <td width="188" height="100" align="center" valign="middle" style="background-image: url(/assets/sunjob/images/left-huiyuanbg.jpg)">
                                                    <table width="150" border="0" cellpadding="0" cellspacing="0">
                                                        <tr>
                                                            <td height="22" align="left" valign="middle" class="name">
                                                                <img src="/assets/sunjob/images/left-huiyuanpic.jpg" width="24" height="18" align="absmiddle">&nbsp; @Model.MemberName</td>
                                                        </tr>
                                                        <tr>
                                                            <td height="22" align="left" valign="middle" class="ling">积分：@Model.MemberPoint</td>
                                                        </tr>
                                                        <tr>
                                                            <td height="22" align="left" valign="middle" class="ling">@Model.MemberType <span>@mystate</span></td>
                                                        </tr>
                                                        <tr>
                                                            <td height="22" align="left" valign="middle" class="leftxiu"><a href="/SunJob/UserInfoEdit/@Model.Id">修改个人资料</a></td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="10" align="left" valign="top"></td>
                                </tr>
                                <tr>
                                    <td align="left" valign="top">
                                        <table width="190" height="234" border="0" cellpadding="0" cellspacing="1" style="background-color: #FFCC97">
                                            <tr>
                                                <td align="center" valign="top" bgcolor="#FFFFFF">
                                                    <table width="188" border="0" cellpadding="0" cellspacing="0">
                                                        <tr>
                                                            <td align="left" valign="top">
                                                                <img src="/assets/sunjob/images/left-tongzhi.jpg" width="188" height="31"></td>
                                                        </tr>
                                                        <tr>
                                                            <td align="center" valign="top">
                                                                <table width="154" border="0" cellpadding="0" cellspacing="0">
                                                                    <tr>
                                                                        <td height="27" align="center" valign="middle" class="leftmenu"><a href="/SunJob/UserMsg/@Model.Id">录取通知</a></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="1" align="left" valign="middle">
                                                                            <img src="/assets/sunjob/images/left-tongzhiline.jpg" width="154" height="1"></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="27" align="center" valign="middle" class="leftmenu"><a href="/SunJob/UserMsg1/@Model.Id">领薪通知</a></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="1" align="left" valign="middle">
                                                                            <img src="/assets/sunjob/images/left-tongzhiline.jpg" width="154" height="1"></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="27" align="center" valign="middle" class="leftmenu"><a  href="/SunJob/MemberTime/@Model.Id">我的时间</a></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="1" align="left" valign="middle">
                                                                            <img src="/assets/sunjob/images/left-tongzhiline.jpg" width="154" height="1"></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="27" align="center" valign="middle" class="leftmenu"><a  href="/SunJob/MemberJob/@Model.Id">我的工作</a></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="1" align="left" valign="middle">
                                                                            <img src="/assets/sunjob/images/left-tongzhiline.jpg" width="154" height="1"></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="27" align="center" valign="middle" class="leftmenu"><a  href="/SunJob/MemberHelpAdd/@Model.Id">需求发布</a></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="1" align="left" valign="middle">
                                                                            <img src="/assets/sunjob/images/left-tongzhiline.jpg" width="154" height="1"></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="27" align="center" valign="middle" class="leftmenu"><a href="/SunJob/MemberHelpList/@Model.Id">我的需求</a></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="1" align="left" valign="middle">
                                                                            <img src="/assets/sunjob/images/left-tongzhiline.jpg" width="154" height="1"></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="27" align="center" valign="middle" class="leftmenu"><a  href="/SunJob/MemberOrder/@Model.Id">我的订单</a></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="1" align="left" valign="middle">
                                                                            <img src="/assets/sunjob/images/left-tongzhiline.jpg" width="154" height="1"></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="27" align="center" valign="middle" class="leftmenu"><a  href="/SunJob/MemberJobpub/@Model.Id">职位发布</a></td>
                                                                    </tr>
                                                                </table>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="10" align="left" valign="top"></td>
                                </tr>
                                <tr>
                                    <td align="left" valign="top">
                                        <table width="190" height="128" border="0" cellpadding="0" cellspacing="1" style="background-color: #FFCC97">
                                            <tr>
                                                <td align="center" valign="top" style="background-color: #FFFFFF">
                                                    <table width="188" border="0" cellpadding="0" cellspacing="0">
                                                        <tr>
                                                            <td align="left" valign="top">
                                                                <img src="/assets/sunjob/images/left-geren.jpg" width="188" height="31"></td>
                                                        </tr>
                                                        <tr>
                                                            <td align="center" valign="top">
                                                                <table width="154" border="0" cellpadding="0" cellspacing="0">
                                                                    <tr>
                                                                        <td height="27" align="center" valign="middle" class="leftmenu"><a  href="/SunJob/UserInfoEdit/@Model.Id">个人资料</a></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="1" align="left" valign="middle">
                                                                            <img src="/assets/sunjob/images/left-tongzhiline.jpg" width="154" height="1"></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="27" align="center" valign="middle" class="leftmenu"><a  href="/SunJob/ChangePassword/@Model.Id">修改密码</a></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="1" align="left" valign="middle">
                                                                            <img src="/assets/sunjob/images/left-tongzhiline.jpg" width="154" height="1"></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="27" align="center" valign="middle" class="leftmenu"><a  href="/SunJob/MemberPoint/@Model.Id">我的积分</a></td>
                                                                    </tr>
                                                                </table>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="left" valign="top">&nbsp;</td>
                                </tr>
                            </table>
                        </td>
                        <td width="15">&nbsp;</td>
                        <td>

                            <table width="965" height="498" border="0" cellpadding="0" cellspacing="1" style="background-color: #FEA700;">
                                <tr>
                                    <td align="center" valign="top" style="background-color: #FFFFFF">
                                        <form action="/SunJob/MemberJobpubAdd/@Model.Id?jobid=@Model.JobInfo.Id" method="post">
                                            <table width="965" border="0" cellpadding="0" cellspacing="0">

                                                <tr align="center" valign="middle" bgcolor="#FFFFFF" class="leftmenu" height="50">
                                                    <td style="text-align: right; padding-right: 5px; width: 15%">发布日期
                                                    </td>
                                                    <td style="text-align: left; width: 35%">
                                                        <input  id="PubDate" name="PubDate" placeholder="" type="text" class="textIpt" value="@Model.JobInfo.PubDate.ToShortDateString()"  /><img onclick="WdatePicker({el:'PubDate'})" src="/DatePicker/skin/datePicker.gif" width="16" height="22" align="absmiddle">
                                                    </td>
                                                    <td style="text-align: right; padding-right: 5px; width: 15%">截止日期
                                                    </td>
                                                    <td style="text-align: left; width: 35%">
                                                        <input  id="EndDate" name="EndDate" placeholder="" type="text" class="textIpt" value="@Model.JobInfo.EndDate.ToShortDateString()"  /><img onclick="WdatePicker({el:'EndDate'})" src="/DatePicker/skin/datePicker.gif" width="16" height="22" align="absmiddle">
                                                    </td>
                                                </tr>

                                                <tr align="center" valign="middle" bgcolor="#FFFFFF" class="leftmenu" height="50">
                                                    <td style="text-align: right; padding-right: 5px; width: 15%">职位类别
                                                    </td>
                                                    <td style="text-align: left; width: 35%">
                                                        <select id="JobTypeId" name="JobTypeId">

                                                            @foreach (var item in Model.BaseInfos.Where(x => x.FunctionName.Trim() == "职位类别"))
                                                            {

                                                                strSelect = "";
                                                                if (Model.JobInfo.JobTypeId == item.Id)
                                                                {
                                                                    strSelect = "selected";
                                                                }
                                                                <option value="@item.Id" @strSelect>@item.MasterType</option>
                                                            }

                                                            }
                                                 
                                                        </select>
                                                    </td>
                                                    <td style="text-align: right; padding-right: 5px; width: 15%">工作类型
                                                    </td>
                                                    <td style="text-align: left; width: 35%">
                                                        <select class="form-control" id="WorkTypeId" name="WorkTypeId">

                                                            @foreach (var item in Model.BaseInfos.Where(x => x.FunctionName.Trim() == "工作类型"))
                                                            {

                                                                strSelect = "";
                                                                if (Model.JobInfo.WorkTypeId == item.Id)
                                                                {
                                                                    strSelect = "selected";
                                                                }
                                                                <option value="@item.Id" @strSelect>@item.MasterType</option>
                                                            }

                                                            }
                                                        </select>
                                                    </td>
                                                </tr>
                                                <tr align="center" valign="middle" bgcolor="#FFFFFF" class="leftmenu" height="50">
                                                    <td style="text-align: right; padding-right: 5px; width: 15%">职位名称
                                                    </td>
                                                    <td style="text-align: left; width: 35%">

                                                        <input  id="JobTitle" name="JobTitle" placeholder="" type="text" class="textIpt" value="@Model.JobInfo.JobTitle" data-val="true" data-val-required="职位名称不允许为空" />
                                                        <span class="field-validation-valid help-block" data-valmsg-for="JobTitle" data-valmsg-replace="true"></span>
                                                    </td>
                                                    <td style="text-align: right; padding-right: 5px; width: 15%">职位数量
                                                    </td>
                                                    <td style="text-align: left; width: 35%">

                                                        <input type="text" id="JobNum" name="JobNum" placeholder="" class="textIpt" data-val="true"  data-val-number="职位数量为非法的数字格式" data-val-regex="职位数量为非法的数字格式"
                                                           data-val-regex-pattern="^(-?\d+)(\.\d+)?$" data-val-required="职位数量为非法的数字格式"  value="@Model.JobInfo.JobNum" />

                                                        <span class="field-validation-valid help-block" data-valmsg-for="JobNum" data-valmsg-replace="true"></span>
                                                    </td>
                                                </tr>
                                                <tr align="center" valign="middle" bgcolor="#FFFFFF" class="leftmenu" height="50">
                                                    <td style="text-align: right; padding-right: 5px; width: 15%">工作日期
                                                    </td>
                                                    <td style="text-align: left; width: 35%">

                                                        <input type="text" id="WorkDate" name="WorkDate" placeholder="" class="textIpt" data-val="true"  data-val-required="工作日期不允许为空" value="@Model.JobInfo.WorkDate" />

                                                        <span class="field-validation-valid help-block" data-valmsg-for="WorkDate" data-valmsg-replace="true"></span>
                                                    </td>
                                                    <td style="text-align: right; padding-right: 5px; width: 15%">工作时间
                                                    </td>
                                                    <td style="text-align: left; width: 35%">

                                                        <input  id="WorkTime" name="WorkTime" placeholder="" type="text" class="textIpt" value="@Model.JobInfo.WorkTime" />
                                                    </td>
                                                </tr>
                                            <tr align="center" valign="middle" bgcolor="#FFFFFF" class="leftmenu" height="50">
                                                <td style="text-align: right; padding-right: 5px; width: 15%">
                                                    招聘单位
                                                </td>
                                                <td style="text-align: left; " >

                                                    <input id="CusShortName" name="CusShortName" placeholder="" type="text" class="textIpt" value="@Model.JobInfo.CusShortName" data-val="true" data-val-required="招聘单位不允许为空" maxlength="8" />
                                                    <span class="field-validation-valid help-block" data-valmsg-for="CusShortName" data-valmsg-replace="true"></span>
                                                </td>
                                                <td style="text-align: right; padding-right: 5px; width: 15%">工作地点
                                                </td>
                                                <td style="text-align: left; ">

                                                    <input id="Workplace" name="Workplace" placeholder="" type="text" class="textIpt"  value="@Model.JobInfo.Workplace" data-val="true" data-val-required="工作地点不允许为空"/>
                                                    <span class="field-validation-valid help-block" data-valmsg-for="Workplace" data-valmsg-replace="true"></span>
                                                </td>

                                            </tr>
                                                <tr align="center" valign="middle" bgcolor="#FFFFFF" class="leftmenu" height="50">
                                                    <td style="text-align: right; padding-right: 5px; width: 15%">工资待遇
                                                    </td>
                                                    <td style="text-align: left; width: 35%">

                                                        <input  id="Salary" name="Salary" placeholder="" type="text" class="textIpt" value="@Model.JobInfo.Salary" data-val="true" data-val-required="工资待遇不允许为空" />
                                                        <span class="field-validation-valid help-block" data-valmsg-for="Salary" data-valmsg-replace="true"></span>
                                                    </td>
                                                    <td style="text-align: right; padding-right: 5px; width: 15%">结算方式
                                                    </td>
                                                    <td style="text-align: left; width: 35%">

                                                        <select class="form-control" id="PayTypeId" name="PayTypeId">

                                                            @foreach (var item in Model.BaseInfos.Where(x => x.FunctionName.Trim() == "工资结算方式"))
                                                            {

                                                                strSelect = "";
                                                                if (Model.JobInfo.PayTypeId == item.Id)
                                                                {
                                                                    strSelect = "selected";
                                                                }
                                                                <option value="@item.Id" @strSelect>@item.MasterType</option>
                                                            }

                                                            }
                                                        </select>
                                                    </td>
                                                </tr>
                                                <tr align="center" valign="middle" bgcolor="#FFFFFF" class="leftmenu" height="50">
                                                    <td style="text-align: right; padding-right: 5px; width: 15%">性别限制
                                                    </td>
                                                    <td style="text-align: left; width: 35%">

                                                        <select class="form-control" id="GenderId" name="GenderId">

                                                            @foreach (var item in Model.BaseInfos.Where(x => x.FunctionName.Trim() == "性别限制"))
                                                            {

                                                                strSelect = "";
                                                                if (Model.JobInfo.GenderId == item.Id)
                                                                {
                                                                    strSelect = "selected";
                                                                }
                                                                <option value="@item.Id" @strSelect>@item.MasterType</option>
                                                            }

                                                            }
                                                        </select>
                                                    </td>
                                                    <td style="text-align: right; padding-right: 5px; width: 15%">身高要求
                                                    </td>
                                                    <td style="text-align: left; width: 35%">
                                                        <select class="form-control" id="BodyLengthId" name="BodyLengthId">

                                                            @foreach (var item in Model.BaseInfos.Where(x => x.FunctionName.Trim() == "身高要求"))
                                                            {

                                                                strSelect = "";
                                                                if (Model.JobInfo.BodyLengthId == item.Id)
                                                                {
                                                                    strSelect = "selected";
                                                                }
                                                                <option value="@item.Id" @strSelect>@item.MasterType</option>
                                                            }

                                                            }
                                                        </select>

                                                    </td>
                                                </tr>

                                                <tr align="center" valign="middle" bgcolor="#FFFFFF" class="leftmenu">
                                                    <td style="text-align: right; padding-right: 5px; width: 15%">面试要求
                                                    </td>
                                                    <td style="text-align: left; width: 85%" colspan="3">
                                                        <select id="JobInterview" name="JobInterview">
                                                            @if (!string.IsNullOrEmpty(Model.JobInfo.JobInterview))
                                                            {
                                                                <option value="@Model.JobInfo.JobInterview.Trim()">@Model.JobInfo.JobInterview.Trim()</option>
                                                            }
                                                            <option value="是">是</option>
                                                            <option value="否">否</option>

                                                        </select>
                                                    </td>

                                                </tr>

                                                <tr align="center" valign="middle" bgcolor="#FFFFFF" class="leftmenu">
                                                    <td style="text-align: right; padding-right: 5px; width: 15%">职位描述
                                                    </td>
                                                    <td style="text-align: left; width: 85%" colspan="3"><textarea id="JobDesc" name="JobDesc" class="form-control" style="height: 300px;width: 600px">@Model.JobInfo.JobDesc</textarea>
                                                    </td>

                                                </tr>
                                                @if (!string.IsNullOrEmpty(ViewBag.msg))
                                                {
                                                    <tr align="center" valign="middle" bgcolor="#FFFFFF" class="leftmenu">
                                                        <td style="text-align: right; padding-right: 5px; width: 15%">提示信息
                                                        </td>
                                                        <td style="text-align: center; width: 85%" colspan="3">
                                                            <span style="color: red">@ViewBag.msg</span>
                                                        </td>

                                                    </tr>
                                                }
                                                <tr>
                                                    <td colspan="2" style="text-align: center">
                                                        <div class="submitWrapper3">
                                                            <input type="submit" value="确认并提交" class="button button01" />
                                                        </div>

                                                    </td>
                                                    <td colspan="2" style="text-align: center">
                                                        <div class="submitWrapper3">
                                                            <input type="button" value="返回" onclick="funadd()" class="button button01" />
                                                        </div>

                                                    </td>
                                                </tr>
                                            </table>
                                        </form>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</div>


